﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace MvcPompling.Models
{
    public class Globals
    {
        static string ConnectionString;

        public static string GetConnectionString()
        {
            if (string.IsNullOrEmpty(ConnectionString))
                ConnectionString = ConfigurationManager.ConnectionStrings["PomplingEntities"].ConnectionString;
            return ConnectionString;
        }
    }
}